
//封装post 与get请求
var methodaxios={
    get:function(obj,url,callback){
        axios.get(url, {params: obj,}).then(function (response) {
            callback(response)
        })
    },
    post:function(obj,url,callback){
        axios.post(obj,url,{
            transformRequest: [ function (data, headers) {
                let str="";
                for (let i in data) {
                    str+=i+"="+data[i]+"&"
                }
                return str;
            }]
        }).then(function (response) {
            callback(response)
        })
    }
}